import _fetch from './request'
function enterprise (params){
  return _fetch({
    url:'/enterprise/list',
    params
  })
}
// 状态设置
function enterpriseStatus(data){
  return _fetch({
    url:'/enterprise/status',
    method:'post',
    data
  })
}
// 新增
function enterpriseAdd(data){
  return _fetch({
    url:'/enterprise/add',
    method:'post',
    data
  })
}
// 删除
function enterpriseRemove(data){
  return _fetch({
    url:'/enterprise/remove',
    method:'post',
    data
  })
}
// 编辑
function enterpriseEdit(data){
  return _fetch({
    url:'/enterprise/edit',
    method:'post',
    data
  })
}
export {enterprise,enterpriseStatus,enterpriseAdd,enterpriseRemove,enterpriseEdit}